Fix typo in ceval.c error message#148860
Conversation
|
Most changes to Python require a NEWS entry. Add one using the blurb_it web app or the blurb command-line tool. If this change has little impact on Python users, wait for a maintainer to apply the |
|
Can you tell me in which case this exception would be raised? |
|
@picnixz, the smallest repro for this would be >>> class E:
... def __getattribute__(self, n):
... if n == "__qualname__": raise RuntimeError
... return super().__getattribute__(n)
...
... E()(a=1, **{"a": 2})
...
Traceback (most recent call last):
File "<python-input-0>", line 6, in <module>
E()(a=1, **{"a": 2})
~~~^^^^^^^^^^^^^^^^^
TypeError: finction got multiple values for keyword argument 'a'
|
|
Ok thanks! We could add a NEWS entry but I think it would be a too niche case. I will include this in the commit message (currently travelling) |
|
Thanks @Anonymous941 for the PR, and @picnixz for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
|
Thanks @Anonymous941 for the PR, and @picnixz for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14. |
|
Sorry, @Anonymous941 and @picnixz, I could not cleanly backport this to |
|
Sorry, @Anonymous941 and @picnixz, I could not cleanly backport this to |
Changed
finctiontofunction.